package edu.gtcfla.km.admin.appmodules.vo;

import java.util.LinkedHashSet;
import java.util.Set;

import org.vsg.common.web.json.TreeNode;

public class HierarchyMenuItem extends TreeNode {
	
	private String code;
	
	private int menuLevel;
	
	private short disabled;
	
	private short sortNum;
	
	private String moduleName;
	

	private Set<HierarchyMenuItem> children 
		= new LinkedHashSet<HierarchyMenuItem>();	
	
	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public int getMenuLevel() {
		return menuLevel;
	}

	public void setMenuLevel(int menuLevel) {
		this.menuLevel = menuLevel;
	}

	public short getDisabled() {
		return disabled;
	}

	public void setDisabled(short diabled) {
		this.disabled = diabled;
	}

	public Set<HierarchyMenuItem> getChildren() {
		return children;
	}
	
	public void addChild(HierarchyMenuItem child) {
		children.add( child );
	}

	public short getSortNum() {
		return sortNum;
	}

	public void setSortNum(short sortNum) {
		this.sortNum = sortNum;
	}

	public String getModuleName() {
		return moduleName;
	}

	public void setModuleName(String moduleName) {
		this.moduleName = moduleName;
	}

	

}
